<!DOCTYPE html>
<html lang="">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title></title>
  </head>
  <body>
  <script src="dsbridge.js"> </script>
  <div id="body"></div>
  <div id="charging"></div>
  <div id="speed"></div>
  <div id="statistic"></div>
  <div id="log"></div>
  <div id="sysInfo"></div>
	<script type="text/javascript">
    <!--
		//var dsBridge=require("dsbridge")
		//Call synchronously 
		//var str=dsBridge.call("testSyn","wwwwwww");
		document.getElementById('body').innerHTML = dsBridge.call("logApi.startLogCat","ppp");
        document.getElementById('sysInfo').innerHTML = dsBridge.call("system.sysInfo","ppp");
		// dsBridge.call("charging.add","ppp");
		// //Call asynchronously
		// dsBridge.call("testAsyn","testAsyn", function (v) {
		//   alert(v);
		// })
		// dsBridge.register('addValue',function(l,r){
		//     alert('sssss')
  //           return l+r;
  //       })
		function register(tag, callback) {
			dsBridge.register(tag, callback)
		}
         register('showLogCat',function(value){
            document.getElementById('log').innerHTML = value;
           // return value;
         })
    //-->
    </script>
  </body>
</html>
